/**
 * \class CDHTKey 
 * \brief This is a class to assign a customizable partitioing policy in DHT way.
 * \version 0.3.2
 *
 * \author Woo-Hyun Kim (woorung@nhncorp.com, woorung@gmail.com)
 * \author http://blog.naver.com/wisereign .
 *
 * \date 2007/10/9
 */
#ifndef CDHTKeyH
#define CDHTKeyH
//-----------------------------------------------------------------
#include <iostream>

#include "md5/CMD5.h"
#include "common_discovery.h"

using namespace std;

class CDHTKey
{
public:
        CDHTKey();
        virtual ~CDHTKey();

	virtual string &hash(char *key, string &hashkey);
	virtual string &get_spacekey(CServiceInfo &service_info, string &spacekey);
};
//-----------------------------------------------------------------
#endif
